<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::util::Rnd_gen_uniform_range&lt; range_t &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1util.html">util</a></li><li class="navelem"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html">Rnd_gen_uniform_range</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classflow_1_1util_1_1Rnd__gen__uniform__range-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::util::Rnd_gen_uniform_range&lt; range_t &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Simple, non-thread-safe uniform-range random number generator.  
 <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="random_8hpp_source.html">random.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for flow::util::Rnd_gen_uniform_range&lt; range_t &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1util_1_1Rnd__gen__uniform__range__inherit__graph.svg" width="307" height="215"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for flow::util::Rnd_gen_uniform_range&lt; range_t &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1util_1_1Rnd__gen__uniform__range__coll__graph.svg" width="420" height="204"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8c6bb1d53f7e1aea58d21091ba37e9ae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a8c6bb1d53f7e1aea58d21091ba37e9ae">Rnd_gen_uniform_range</a> (range_t min=0, range_t max=std::numeric_limits&lt; range_t &gt;::max())</td></tr>
<tr class="memdesc:a8c6bb1d53f7e1aea58d21091ba37e9ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begins the random number generation sequence.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a8c6bb1d53f7e1aea58d21091ba37e9ae">More...</a><br /></td></tr>
<tr class="separator:a8c6bb1d53f7e1aea58d21091ba37e9ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7470837dde6dbb38691b4bb7ecf93472"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a7470837dde6dbb38691b4bb7ecf93472">Rnd_gen_uniform_range</a> (uint32_t seed, range_t min, range_t max)</td></tr>
<tr class="memdesc:a7470837dde6dbb38691b4bb7ecf93472"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begins the random number generation sequence.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a7470837dde6dbb38691b4bb7ecf93472">More...</a><br /></td></tr>
<tr class="separator:a7470837dde6dbb38691b4bb7ecf93472"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a579080b18b6c95d49039a5098afe707b"><td class="memItemLeft" align="right" valign="top">range_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a579080b18b6c95d49039a5098afe707b">operator()</a> ()</td></tr>
<tr class="memdesc:a579080b18b6c95d49039a5098afe707b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the next pseudo-random number in <code>[min, max]</code> provided in constructor.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a579080b18b6c95d49039a5098afe707b">More...</a><br /></td></tr>
<tr class="separator:a579080b18b6c95d49039a5098afe707b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a04d93d9b272f9896ad99f33cf76cf67d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668">Random_generator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a04d93d9b272f9896ad99f33cf76cf67d">m_gen</a></td></tr>
<tr class="memdesc:a04d93d9b272f9896ad99f33cf76cf67d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Random number generator engine.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a04d93d9b272f9896ad99f33cf76cf67d">More...</a><br /></td></tr>
<tr class="separator:a04d93d9b272f9896ad99f33cf76cf67d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac216ad57ff7d9a116bc13b71510231bf"><td class="memItemLeft" align="right" valign="top">boost::random::uniform_int_distribution&lt; range_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#ac216ad57ff7d9a116bc13b71510231bf">m_seq</a></td></tr>
<tr class="memdesc:ac216ad57ff7d9a116bc13b71510231bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uniform-distribution sequence in <code>[min, max]</code> backed by <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a04d93d9b272f9896ad99f33cf76cf67d" title="Random number generator engine.">m_gen</a>.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#ac216ad57ff7d9a116bc13b71510231bf">More...</a><br /></td></tr>
<tr class="separator:ac216ad57ff7d9a116bc13b71510231bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html">flow::util::Rnd_gen_uniform_range_base</a></td></tr>
<tr class="memitem:a519fc83fd1c52a82618cd85f3a089668 inherit pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668">Random_generator</a> = boost::random::mt19937</td></tr>
<tr class="memdesc:a519fc83fd1c52a82618cd85f3a089668 inherit pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td class="mdescLeft">&#160;</td><td class="mdescRight">The random generator engine; it is public for the reason explained in Usability section of the <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html" title="Simple, non-thread-safe uniform-range random number generator.">Rnd_gen_uniform_range</a> doc header.  <a href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668">More...</a><br /></td></tr>
<tr class="separator:a519fc83fd1c52a82618cd85f3a089668 inherit pub_types_classflow_1_1util_1_1Rnd__gen__uniform__range__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename range_t&gt;<br />
class flow::util::Rnd_gen_uniform_range&lt; range_t &gt;</div><p >Simple, non-thread-safe uniform-range random number generator. </p>
<p >This merely wraps the perfectly nice, advanced random number generation facilities for this common, simple use case.</p>
<h3>Thread safety</h3>
<p >The random number generation itself is not safe for concurrent invocation on the same <code>this</code>. Use <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html" title="Identical to Rnd_gen_uniform_range but safe for concurrent RNG given a single object.">Rnd_gen_uniform_range_mt</a> if this is not acceptable.</p>
<h3>Usability, performance discussion</h3>
<p >This class is hopefully appealingly simple; but please note that if you are using N=2+ instances of it for N different uniform ranges (let alone other distributions), you could instead use boost.random directly: namely institute a single RNG and then generate values against various distributions from that shared RNG. In particular, this would require only one seed (arguably increases code simplicity in that respect); and might be faster since there is one raw RNG engine instead of N (as would be the case if one used N <code><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html" title="Simple, non-thread-safe uniform-range random number generator.">Rnd_gen_uniform_range</a></code>s).</p>
<p >If one chooses to do as suggested in the previous paragraph, <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668" title="The random generator engine; it is public for the reason explained in Usability section of the Rnd_ge...">Rnd_gen_uniform_range_base::Random_generator</a> is a good choice for the RNG itself (but of course one is free to use another one, if this one's mathematical/perf properties are not acceptable).</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">range_t</td><td>Type of values generated; must be suitable for <code>boost::random::uniform_int_distribution</code>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000151">Todo:</a></b></dt><dd><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html" title="Simple, non-thread-safe uniform-range random number generator.">Rnd_gen_uniform_range</a> and <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html" title="Identical to Rnd_gen_uniform_range but safe for concurrent RNG given a single object.">Rnd_gen_uniform_range_mt</a>, on reflection, are very similar to <code>boost::random::random_number_generator</code>, and should be written to conform to it, so as to be usable in <code>std::random_shuffle()</code>, and also to gain its appealing extra features without losing any of the already-available simplicity. Note, however, that <code>std::random_shuffle()</code> is deprecated (and gone in C++17) in favor of <code>std::shuffle()</code>, which is available from C++11 on, and which works directly with a formal URNG such as <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668" title="The random generator engine; it is public for the reason explained in Usability section of the Rnd_ge...">Rnd_gen_uniform_range_base::Random_generator</a>. So this to-do is less about that and more about gaining those other features while being suitable for <code>random_shuffle()</code>, which some code does still use out there.</dd></dl>
<p >Regarding the above to-do: Here is how <code>boost::random::random_number_generator</code> differs from this class and the implications:</p><ul>
<li>It accepts a URNG as a template arg. We should do that too while defaulting to <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668" title="The random generator engine; it is public for the reason explained in Usability section of the Rnd_ge...">Rnd_gen_uniform_range_base::Random_generator</a>.</li>
<li>It accepts a URNG reference as a ctor arg. We should do that too while also providing a ctor that causes us to create our own, like now; in the latter case we would pass the ctor <code>seed</code> arg into it. In the former case it should invoke <code>URNG.seed()</code> to set the seed while requiring that URNG is a boost.random PseudoRandomNumberGenerator (so that it can take <code>.seed()</code>). Do note that taking a seed this way is an added feature we have.</li>
<li>Its <code>operator()</code> accepts N and returns a value in [0, N - 1], whereas ours takes no args and returns something in the range [min, max] given in ctor. We must (in order to conform to what <code>std::random_shuffle()</code> expects) provide what they provide; but we should also feature two more <code>operator()</code> overloads:<ul>
<li>No-args: Same as now.</li>
<li>Two args min, max: Return from [min, max].</li>
</ul>
</li>
<li>It is interesting that its implementation as of Boost 1.76.0 (at least) creates a new equivalent of <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#ac216ad57ff7d9a116bc13b71510231bf" title="Uniform-distribution sequence in [min, max] backed by m_gen.">m_seq</a> in <em>each</em> <code>operator()</code> call. Is that slower than our impl? However, since no one is screaming about its slowness, maybe we should conclude the way they do it is fine; and it does have an advantage: one can implement the non-zero-arg <code>operator()</code> trivially. Perhaps we should do what they do for the non-zero-arg overloads; while doing what we do for the zero-arg one.</li>
</ul>
<p >Lastly we also provide <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__mt.html" title="Identical to Rnd_gen_uniform_range but safe for concurrent RNG given a single object.">Rnd_gen_uniform_range_mt</a>, which is a feature they lack, and we can trivially extend it to cover all of the above suggested changes. </p>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00101">101</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8c6bb1d53f7e1aea58d21091ba37e9ae" name="a8c6bb1d53f7e1aea58d21091ba37e9ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c6bb1d53f7e1aea58d21091ba37e9ae">&#9670;&nbsp;</a></span>Rnd_gen_uniform_range() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename range_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html">flow::util::Rnd_gen_uniform_range</a>&lt; range_t &gt;::Rnd_gen_uniform_range </td>
          <td>(</td>
          <td class="paramtype">range_t&#160;</td>
          <td class="paramname"><em>min</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">range_t&#160;</td>
          <td class="paramname"><em>max</em> = <code>std::numeric_limits&lt;range_t&gt;::max()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Begins the random number generation sequence. </p>
<p >Current time is used as the seed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>Generated numbers will be in range <code>[min, max]</code>. </td></tr>
    <tr><td class="paramname">max</td><td>See <code>min</code>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00199">199</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>

</div>
</div>
<a id="a7470837dde6dbb38691b4bb7ecf93472" name="a7470837dde6dbb38691b4bb7ecf93472"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7470837dde6dbb38691b4bb7ecf93472">&#9670;&nbsp;</a></span>Rnd_gen_uniform_range() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename range_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html">flow::util::Rnd_gen_uniform_range</a>&lt; range_t &gt;::Rnd_gen_uniform_range </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>seed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">range_t&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">range_t&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Begins the random number generation sequence. </p>
<p >Seed is to be given as an argument.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>Generated numbers will be in range <code>[min, max]</code>. </td></tr>
    <tr><td class="paramname">max</td><td>See <code>min</code>. </td></tr>
    <tr><td class="paramname">seed</td><td>Seed. Supply the same value to yield the same sequence repeatedly. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00185">185</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a579080b18b6c95d49039a5098afe707b" name="a579080b18b6c95d49039a5098afe707b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a579080b18b6c95d49039a5098afe707b">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename range_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">range_t <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html">flow::util::Rnd_gen_uniform_range</a>&lt; range_t &gt;::operator()</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the next pseudo-random number in <code>[min, max]</code> provided in constructor. </p>
<p >Not thread-safe for a given <code>this</code>.</p>
<dl class="section return"><dt>Returns</dt><dd>Ditto. </dd></dl>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00193">193</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a04d93d9b272f9896ad99f33cf76cf67d" name="a04d93d9b272f9896ad99f33cf76cf67d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04d93d9b272f9896ad99f33cf76cf67d">&#9670;&nbsp;</a></span>m_gen</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename range_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range__base.html#a519fc83fd1c52a82618cd85f3a089668">Random_generator</a> <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html">flow::util::Rnd_gen_uniform_range</a>&lt; range_t &gt;::m_gen</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Random number generator engine. </p>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00144">144</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>

</div>
</div>
<a id="ac216ad57ff7d9a116bc13b71510231bf" name="ac216ad57ff7d9a116bc13b71510231bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac216ad57ff7d9a116bc13b71510231bf">&#9670;&nbsp;</a></span>m_seq</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename range_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boost::random::uniform_int_distribution&lt;range_t&gt; <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html">flow::util::Rnd_gen_uniform_range</a>&lt; range_t &gt;::m_seq</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Uniform-distribution sequence in <code>[min, max]</code> backed by <a class="el" href="classflow_1_1util_1_1Rnd__gen__uniform__range.html#a04d93d9b272f9896ad99f33cf76cf67d" title="Random number generator engine.">m_gen</a>. </p>

<p class="definition">Definition at line <a class="el" href="random_8hpp_source.html#l00146">146</a> of file <a class="el" href="random_8hpp_source.html">random.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>util/<a class="el" href="random_8hpp_source.html">random.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:36 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
